package com.jeez.module.sys.entity;

import com.jeez.common.entity.DataEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author: Felix
 * @date: 2018-7-1
 * @version: v1.0
 * @description: 组织机构
 */
@Entity
@Table(name = "t_sys_org")
@Getter
@Setter
public class SysOrg extends DataEntity<SysOrg> {

    @Basic
    @Column(name = "org_name", nullable = false, insertable = true, updatable = true, length = 300)
    private String orgName;


    @Basic
    @Column(name = "parent_id", nullable = false, insertable = true, updatable = true)
    private long parentId;

    @Basic
    @Column(name = "org_type", nullable = true, insertable = true, updatable = true, length = 20)
    private String orgType;

    @Basic
    @Column(name = "org_seq", nullable = true, insertable = true, updatable = true, length = 300)
    private String orgSeq;

    @Basic
    @Column(name = "org_level", nullable = true, insertable = true, updatable = true, length = 10)
    private String orgLevel;

    @Basic
    @Column(name = "order_num", nullable = false, insertable = true, updatable = true)
    private long orderNum;

    @Basic
    @Column(name = "status", nullable = false, insertable = true, updatable = true, length = 4)
    private String status;


    @Basic
    @Column(name = "area_name", nullable = true, insertable = true, updatable = true, length = 60)
    private String areaName;


    @Basic
    @Column(name = "address", nullable = true, insertable = true, updatable = true, length = 400)
    private String address;

    @Basic
    @Column(name = "zip_code", nullable = true, insertable = true, updatable = true, length = 15)
    private String zipCode;

    @Basic
    @Column(name = "master", nullable = true, insertable = true, updatable = true, length = 60)
    private String master;

    @Basic
    @Column(name = "phone", nullable = true, insertable = true, updatable = true, length = 16)
    private String phone;


    @Basic
    @Column(name = "fax", nullable = true, insertable = true, updatable = true, length = 16)
    private String fax;

    @Basic
    @Column(name = "email", nullable = true, insertable = true, updatable = true, length = 40)
    private String email;

    @Basic
    @Column(name = "remark", nullable = true, insertable = true, updatable = true, length = 400)
    private String remark;


}
